def main_window():
 import tkinter as tk
 import pickle
 from datetime import datetime 
 import os

 window = tk.Tk()
 window.config(bg='#FFFFE0')
 window.title('CBM记事本')

 lable2 = tk.Label(window, text='请输入您的计划/Please add your plan:')
 lable2.config(bg='#F5F5F5')
 lable2.pack()
 lable3 = tk.Label(window, text='输入截止日期/date (deadline in YYYY-MM-DD HH:MM):')
 lable3.pack()

 frame = tk.Frame(window)
 frame.pack(fill=tk.BOTH, expand=True)
 note = tk.Listbox(frame)
 note.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
 scrollbar_y = tk.Scrollbar(frame, command=note.yview)
 scrollbar_y.pack(side=tk.RIGHT, fill=tk.Y)
 note.config(yscrollcommand=scrollbar_y.set)
 scrollbar_x = tk.Scrollbar(frame, orient=tk.HORIZONTAL, command=note.xview)
 scrollbar_x.pack(side=tk.BOTTOM, fill=tk.X)
 note.config(xscrollcommand=scrollbar_x.set)
    
 button1 = tk.Button(text='保存/Save', command=button_click)
 button1.pack()
 button2 = tk.Button(window, text='删除/Delete', command=cut_piece)
 button2.pack()  

 button1 = tk.Button(text='保存/Save', command=button_click)
 button1.pack()
 button2 = tk.Button(window, text='删除/Delete', command=cut_piece)
 button2.pack()  

 window.geometry("400x600")
 window.resizable(False, False)
 window.mainloop()